package com.sc.nft.config.hf;

import lombok.Data;

import java.security.PrivateKey;

@Data
public class HfConfig {


    /**
     * 私钥文件名
     */
    public static String privatePath;
    public static byte[] privateKey;
    public static byte[] publicKey;
    /**
     * 公钥地址
     */
    public static String publicPath;
    /**
     * 私钥密钥
     */
    public static String privatePwd;
    /**
     * 商户客户号
     */
    public static String merCustId;
    /**
     * 商户号
     */
    public static String merId;
    /**
     * 版本号
     */
    public static String version;
    /**
     * 支付地址
     */
    public static String apiUrl;
    /**
     * acctId
     */
    public static String acctId;
    /**
     * 回调地址
     */
    public static String notifyUrl;
    /**
     * IP商城回调地址
     */
    public static String mallNotifyUrl;
    /**
     * IP商城退款回调地址
     */
    public static String mallRefundNotifyUrl;
    /**
     * 开户回调地址
     */
    public static String accountNotifyUrl;
    /**
     * 延时分账
     */
    public static String splitUrl;


    private static final String payMethod="hfpwallet/pay033";
    private static final String walletMethod="hfpwallet/w00003";
    private static final String walletManagerMethod="hfpwallet/w00004";
    private static final String balanceMethod="alse/qry001";
    private static final String bindCardSendSmsMethod="hfpay/sms005";
    private static final String bindCardConfirmMethod="hfpay/bind09";
    private static final String transferMethod="hfpay/pay026";
    private static final String queryMethod="alse/qry005";
    private static final String subMethod="hfpay/pay006";
    private static final String refundMethod="hfpay/reb001";
    private static final String refundMethod2="hfpay/reb002";
    private static final String splitMethod="hfpay/pay006";


    public static String getRefundUrl(){
        return apiUrl.concat(refundMethod);
    }
    public static String getRefundUrl2(){
        return apiUrl.concat(refundMethod2);
    }
    public static String getPayUrl(){
        return apiUrl.concat(payMethod);
    }
    public static String getQueryUrl(){
        return apiUrl.concat(queryMethod);
    }
    public static String getTransferUrl(){
        return apiUrl.concat(transferMethod);
    }
    public static String getBindCardSmsUrl(){
        return apiUrl.concat(bindCardSendSmsMethod);
    }
    public static String getBindCardConfirmUrl(){
        return apiUrl.concat(bindCardConfirmMethod);
    }
    public static String getBalanceUrl(){
        return apiUrl.concat(balanceMethod);
    }
    public static String getSubUrl(){
        return apiUrl.concat(subMethod);
    }

    public static String getWalletUrl(){
        return apiUrl.concat(walletMethod);
    }
    public static String getWalletManagerUrl(){
        return apiUrl.concat(walletManagerMethod);
    }
    public static String getSplitUrl(){
        return apiUrl.concat(splitMethod);
    }

}
